package ch5;

import java.util.Scanner;

public class Zuoye14 {//求一个正整数 倒转后加上1024的结果.比如
// 12345倒转后是54321,加上1024，结果是55345.
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.print("输入一个数：");
        int a = input.nextInt();
        int c = 0;
        int d = 0;
        while (a != 0) {
            c = a % 10;
            d = d * 10 + c;
            a = a / 10;
        }
        d = d + 1024;
        System.out.println(d);
    }
}
